<?php
	$table_name = $wpdb->prefix . $db_name;
	if($wpdb->get_var("SHOW TABLES LIKE '$table_name'") != $table_name) {
		$sql = "CREATE TABLE " . $table_name . " (
		  id mediumint(9) NOT NULL AUTO_INCREMENT,
		  src TEXT(0) NOT NULL,
		  url VARCHAR(255) NOT NULL,
		  title VARCHAR(255) NOT NULL,
		  description TEXT(0) NOT NULL,
		  skin VARCHAR(255) NOT NULL,
		  ptype VARCHAR(55) NOT NULL,
		  target VARCHAR(55) NOT NULL,
		  border VARCHAR(55) NOT NULL,
		  readmore VARCHAR(55) NOT NULL,
		  orderby int(11) NOT NULL,
		  UNIQUE KEY id (id)
		) ENGINE=InnoDB DEFAULT CHARSET=utf8;";
		require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
		dbDelta($sql);
	}
?>